home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / General App Samples / QDGX Shell ƒ / QDGX shell.mpwfat.make < prev    next >
Encoding:
Text File  |  1996-06-20  |  4.0 KB  |  122 lines  |  [TEXT/MPS ]

  1. #
  2. #   File:       QDGX shell.mpwfat.make
  3. #
  4. #   Target:     QDGX shell.mpwfat 
  5. #
  6. #    Why:    This makefile creates a "FAT" version of the QuickDraw GX sample shell app
  7. #                Since we built a "FAT" version of this app, it will run on a 68k or PowerPC Mac running
  8. #                QuickDraw GX v1.0 or newer.
  9. #
  10. #   Sources:    "{GXLIBRARIES}ColorLibrary.c"
  11. #               "{GXLIBRARIES}FontLibrary.c"
  12. #               "{GXLIBRARIES}GraphicsDebugLibrary.c"
  13. #               "{GXLIBRARIES}ShapeLibrary.c"
  14. #               "{GXLIBRARIES}TransformLibrary.c"
  15. #               "QDGX shell.r"
  16. #               "QDGX shell.c"
  17. #               "QDGX shell misc.c"
  18. #               "QDGX shell printing.c"
  19. #               "put your code here.c"
  20. #
  21. #   Created:    Wednesday, December 22, 1993 05:09:44 PM
  22. #
  23. #                 6/20/96    cn        Updated to support MPW Pro #19.
  24. #
  25.  
  26. ThisMakeFile        =    QDGX shell.mpwfat.make
  27.  
  28. GXINTERFACES         = {CIncludes}
  29. SOURCE                    =    :
  30. OBJ68K                    =    :Obj68K:
  31. OBJPPC                    =    :ObjPPC:
  32. GXLIBRARIES         = {MPW}GXLibraries:
  33. GXLIBRARIES68K     = {Obj68K}
  34. GXLIBRARIESPPC     = {ObjPPC}
  35.  
  36. 68KOBJECTS         =    "{GXLIBRARIES68K}ColorLibrary.c.o" ∂
  37.                                 "{GXLIBRARIES68K}FontLibrary.c.o" ∂
  38.                                 "{GXLIBRARIES68K}GraphicsDebugLibrary.c.o" ∂
  39.                                 "{GXLIBRARIES68K}ShapeLibrary.c.o"            ∂
  40.                                 "{GXLIBRARIES68K}TransformLibrary.c.o" ∂
  41.                                 "{OBJ68K}QDGX shell.c.o" ∂
  42.                                 "{OBJ68K}QDGX shell misc.c.o" ∂
  43.                                 "{OBJ68K}QDGX shell printing.c.o" ∂
  44.                                 "{OBJ68K}put your code here.c.o" ∂
  45.  
  46. POWERPCOBJECTS     =     "{GXLIBRARIESPPC}ColorLibrary.o"∂
  47.                                         "{GXLIBRARIESPPC}FontLibrary.o" ∂
  48.                                         "{GXLIBRARIESPPC}GraphicsDebugLibrary.o" ∂
  49.                                         "{GXLIBRARIESPPC}ShapeLibrary.o"            ∂
  50.                                         "{GXLIBRARIESPPC}TransformLibrary.o" ∂
  51.                                         "{OBJPPC}QDGX shell.o" ∂
  52.                                         "{OBJPPC}QDGX shell misc.o" ∂
  53.                                         "{OBJPPC}QDGX shell printing.o" ∂
  54.                                         "{OBJPPC}put your code here.o" ∂
  55.  
  56. #
  57. # MakePEF allows us to "weak" link to QuickDrawGXLib so our PowerPC code can run if the library
  58. # isn't present.  It's up to the app to check before we call any of the GX functions, though.  
  59. # We specify weaking linking by the end of the -weakLib option to PPCLink (see below).
  60. #
  61.  
  62. #
  63. #    You need to define debugging to enable all of the GX warnings available only in the 
  64. #    debugging version of the QuickDraw GX debugging init.
  65. #
  66. CSYMOPTIONS            = -sym on
  67. COPTIONS                 = -d debugging -i "{GXINTERFACES}" -i "{GXLIBRARIES}" {CSYMOPTIONS}
  68.  
  69. PPCSYMOPTIONS        = -sym on
  70. PPCCOPTIONS         = -d debugging -i "{GXINTERFACES}" -i "{GXLIBRARIES}" {PPCSYMOPTIONS}
  71.  
  72.  
  73. #------------------------------------------------------------------------------
  74. # These are modified default build rules.  This is so we can automatically 
  75. # build for both 68K and PowerPC.
  76. #------------------------------------------------------------------------------
  77. "{OBJ68K}"                ƒ    "{SOURCE}"
  78.  
  79. "{GXLIBRARIES68K}"    ƒ    "{GXLIBRARIES}"
  80.  
  81. .c.o                    ƒ    .c
  82.     {C} {COptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  83.  
  84. "{OBJPPC}"                ƒ    "{SOURCE}"
  85.  
  86. "{GXLIBRARIESPPC}"    ƒ    "{GXLIBRARIES}"
  87.  
  88. .o                        ƒ    .c
  89.     MrCpp {PPCCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.o
  90.  
  91. #------------------------------------------------------------------------------
  92.  
  93.  
  94. "QDGX shell.mpwfat"  ƒƒ "{ThisMakeFile}" 'QDGX shell.r'
  95.     Rez 'QDGX shell.r' -append -o "QDGX shell.mpwfat"
  96.  
  97. "QDGX shell.mpwfat" ƒƒ "{ThisMakeFile}"  {POWERPCOBJECTS}
  98.     PPCLink  {PPCSYMOPTIONS} ∂
  99.         {POWERPCOBJECTS} ∂
  100.         "{SharedLibraries}"InterfaceLib ∂
  101.         "{PPCLibraries}"QuickDrawGXLib.xcoff ∂
  102.         "{SharedLibraries}"MathLib ∂
  103.         "{SharedLibraries}"StdCLib ∂
  104.         "{PPCLibraries}"StdCRuntime.o ∂
  105.         "{PPCLibraries}"PPCCRuntime.o ∂
  106.         -main __start ∂
  107.         -o "QDGX shell.mpwfat" ∂
  108.         -librename InterfaceLib.xcoff=InterfaceLib ∂
  109.       -librename QuickDrawGXLib.xcoff=QuickDrawGXLib ∂
  110.         -librename MathLib.xcoff=MathLib ∂
  111.         -librename StdCLib.xcoff=StdCLib ∂
  112.         -weakLib QuickDrawGXLib ∂
  113.         -t APPL -c '????'
  114.     MakeSYM -i "{GXLIBRARIESGXLIBRARIES}" "QDGX shell.mpwfat.xcoff" -o "QDGX shell.mpwfat.xSYM"
  115.  
  116. "QDGX shell.mpwfat" ƒƒ "{ThisMakeFile}"  {68KOBJECTS}
  117.     Link -t APPL -c '????' {CSYMOPTIONS} -mf ∂
  118.         {68KOBJECTS} ∂
  119.          "{Libraries}"MacRuntime.o ∂
  120.          "{Libraries}"Interface.o ∂
  121.         -o "QDGX shell.mpwfat"
  122.